package cn.spring.mapper;

import cn.spring.domain.Department;
import cn.spring.domain.Employee;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface EmployeeMapper {
    void insert(Employee employee);
    /**更新 */
    void update(Employee employee);
    /**删除 */
    void delete(Long id);
    /**查询所有 */
    List<Employee> selectAll();
    /**查询单个部门 */
    Employee selectById(Long id);
}
